--[[-- @Author:      feilong-- @DateTime:    2020-11-13 23:05:48-- @Description: 连接consul的 api-- @Example:    consul 是go写的，可以做配置共享与服务发现    现在集群的服务发现是写在cluster里， 后面可能考虑用consul--]]--package.path = package.path ..";../src/common/services/nacos/?.lua;../src/common/services/nacos/socket/?.lua"----------------------------------------------------------- class---------------------------------------------------------local M = class("Service")function M:ctor(name)    self.handler = new("consul.handler")    self:register()endfunction M:register()    g.register('start', handler(self, self.onStart))    g.register('close', handler(self, self.onClose))endfunction M:onStart()    --print(tostring(package.path))    self.handler:start()    return trueendfunction M:onClose()    return trueendreturn M